local skynet = require "skynet"

local Logic = require "zhongfabai.Logic"
local CMD = {}
local logic

function CMD.start(...)
	if not logic then 
		logic = Logic.new(...)
	end
end

function CMD.notify(is_work)
	return true
end

function CMD.mgr_sitdown_req(data)
	print("------------------mgr_sitdown_req", data)
	logic:mgr_sitdown_req(data)
end

function CMD.mgr_standup_req(data)
	print("---------------------mgr_standup_req", data)
	logic:mgr_standup_req(data)
end


function CMD.exit(...)
	logic:exit()
	logic = nil
end
---------------------------------------------------------
-- skynet
---------------------------------------------------------
skynet.start(function()
	skynet.dispatch("lua", dispatch_command(CMD, REQUEST))
end)
